// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .csa}

//-------------MAIN---------------
0000: NOP
 
thread 'carschase'

:NONAME_2
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @NONAME_2 
wait 0 
if and
00E1:   key_pressed 3 touch_point 5
00E1:   key_pressed 3 touch_point 4 
   Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_2  
$HELINOTIFICATIONSHOWED = 0 
$POLNOTIFICATIONSHOWED = 0 
$PASSANGER1 = 0 
$PASSANGER2 = 0 
$PASSANGER3 = 0 
01F0: set_max_wanted_level_to 0 
Model.Load(#LAPD1)
Model.Load(#POLMAV)
Model.Load(#BFYPRO)
Model.Load(#SILENCED)
Model.Load(#MICRO_UZI)
Model.Load(#CELLPHONE)

:NONAME_121
wait 0 
if and
   Model.Available(#LAPD1)
   Model.Available(#BFYPRO)
   Model.Available(#SILENCED)
   Model.Available(#CELLPHONE)
else_jump @NONAME_121 
01F7: set_player $PLAYER_CHAR ignored_by_cops 1 
wait 1000 
04C4: store_coords_to $LC1 $LC2 $LC3 from_actor $PLAYER_ACTOR with_offset -50.0 -50.0 5.0 
04C4: store_coords_to $LC4 $LC5 $LC6 from_actor $PLAYER_ACTOR with_offset 50.0 50.0 5.0 
09C0: $CC = get_random_car_in_area $LC1 $LC2 $LC4 $LC5 10.0 with_actors -1 
if 
056E:   car $CC defined 
else_jump @NONAME_121 
046C: $CP = car $CC driver 
Car.StorePos($CC, $CARP1, $CARP2, $CARP3)
$CH = Car.Health($CC)
08EC: $CT = car $CC class 
$CM = Car.Model($CC)
02E3: $CS = car $CC speed 
03F3: get_car $CC primary_color_to $CC1 secondary_color_to $CC2 
$PA = Actor.CurrentCar($PLAYER_ACTOR)
$CAA = Actor.Angle($CP)
if 
   not Actor.DrivingPoliceVehicle($CP)
else_jump @NONAME_121 
0337: set_actor $CP visibility 0 
0362: remove_actor $CP from_car_and_place_at 2239.367 -1261.939 22.9375 
0665: get_actor $CP model_to $CPM 
Actor.RemoveReferences($CP)
if 
0431:   car $CC passenger_seat_free 0 
else_jump @NONAME_427 
jump @NONAME_574 

:NONAME_427
0432: $CP1 = get_actor_handle_from_car $CC passenger_seat 0 
0665: get_actor $CP1 model_to $CP1M 
Actor.RemoveReferences($CP1)
$PASSANGER1 = 1 
if 
0431:   car $CC passenger_seat_free 1 
else_jump @NONAME_482 
jump @NONAME_574 

:NONAME_482
0432: $CP2 = get_actor_handle_from_car $CC passenger_seat 1 
0665: get_actor $CP2 model_to $CP2M 
Actor.RemoveReferences($CP2)
$PASSANGER2 = 1 
if 
0431:   car $CC passenger_seat_free 2 
else_jump @NONAME_537 
jump @NONAME_574 

:NONAME_537
0432: $CP3 = get_actor_handle_from_car $CC passenger_seat 2 
0665: get_actor $CP3 model_to $CP3M 
Actor.RemoveReferences($CP3)
$PASSANGER3 = 1 
jump @NONAME_574 

:NONAME_574
Car.RemoveReferences($CC)
$CC = Car.Create($CM, $CARP1, $CARP2, $CARP3)
Car.Health($CC) = $CH
0229: set_car $CC primary_color_to $CC1 secondary_color_to $CC2 
Car.Angle($CC) = $CAA
$CP = Actor.CreateAsDriver(Criminal, $CPM, $CC)
if 
  $PASSANGER1 == 1 
else_jump @NONAME_889 
$CP1 = Actor.CreateAsPassenger(Criminal, $CP1M, $CC, 0)
Actor.GiveWeaponAndAmmo($CP1, MicroUzi, 99999)
0713: actor $CP1 driveby_actor -1 car $PA point 0.0 0.0 0.0 radius 100.0 0 0 firing_rate 999 
if 
  $PASSANGER2 == 1 
else_jump @NONAME_889 
$CP2 = Actor.CreateAsPassenger(Criminal, $CP2M, $CC, 1)
Actor.GiveWeaponAndAmmo($CP2, MicroUzi, 99999)
0713: actor $CP2 driveby_actor -1 car $PA point 0.0 0.0 0.0 radius 100.0 0 0 firing_rate 999 
if 
  $PASSANGER3 == 1 
else_jump @NONAME_889 
$CP3 = Actor.CreateAsPassenger(Criminal, $CP3M, $CC, 2)
Actor.GiveWeaponAndAmmo($CP3, MicroUzi, 99999)
0713: actor $CP3 driveby_actor -1 car $PA point 0.0 0.0 0.0 radius 100.0 0 0 firing_rate 999 
jump @NONAME_889 

:NONAME_889
03CC: enable_car $CC stuck_check_distance_to 2.0 time_to 2.0 
0423: set_car $CC improved_handling_to 2.0 // (float) 
04C4: store_coords_to $CP1 $CP2 $CP3 from_actor $CP with_offset 0.0 75.0 0.0 
02C1: store_to $CP1 $CP2 $CP3 car_path_coords_closest_to $CP1 $CP2 $CP3 
Car.SetSpeedInstantly($CC, $CS)
Car.DriveTo($CC, $CP1, $CP2, $CP3)
00AE: set_car $CC traffic_behaviour_to 2 
Car.SetMaxSpeed($CC, 25.0)
wait 10000 
$CM = Marker.CreateAboveCar($CC)
Car.SetToPsychoDriver($CC)
03CC: enable_car $CC stuck_check_distance_to 50.0 time_to 50.0 

:NONAME_1035
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
if 
056E:   car $CC defined 
else_jump @NONAME_2495 
wait 5 
if 
00E1:   key_pressed 3 touch_point 1 
else_jump @NONAME_1093 
jump @NONAME_2196 

:NONAME_1093
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
if 
056E:   car $CC defined 
else_jump @NONAME_2495 
wait 5 
if 
00E1:   key_pressed 3 touch_point 7 
else_jump @NONAME_1162 
03E5: show_text_box 'CCHA4' 
jump @NONAME_1734 

:NONAME_1162
wait 5 
if 
   Actor.Driving($CP)
else_jump @NONAME_1227 
Car.SetMaxSpeed($CC, 32.0)
if and
   Actor.Driving($PLAYER_ACTOR)
00E1:   key_pressed 3 touch_point 5
00E1:   key_pressed 3 touch_point 4 
else_jump @NONAME_1035 
05CD: AS_actor $CP exit_car $CC 
jump @NONAME_1227 

:NONAME_1227
wait 900 
Marker.Disable($CM)
$CM = Marker.CreateAboveActor($CP)
Car.SetImmunities($CC, 0, 0, 0, 0, 0)
wait 5 
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
jump @NONAME_1287 

:NONAME_1287
05E2: AS_actor $CP kill_actor $PLAYER_ACTOR 
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
jump @NONAME_1318 

:NONAME_1318
wait 5 
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
if and
02D8:   actor $PLAYER_ACTOR current_weapon == 23 
00F2:   actor $PLAYER_ACTOR near_actor $CP radius 10.0 10.0 0 
0457:   player $PLAYER_CHAR aiming_at_actor $CP 
else_jump @NONAME_1318 
05C4: AS_actor $CP hands_up 100 ms 
wait 50 
0430: put_actor $CP into_car $PA passenger_seat 2 
0430: put_actor $CP into_car $PA passenger_seat 2 
0430: put_actor $CP into_car $PA passenger_seat 2 
Car.RemoveReferences($CC)
Marker.Disable($CM)
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
wait 5 
if 
   Actor.InCar($CP, $PA)
else_jump @NONAME_1495 
0526: set_actor $CP stay_in_car_when_jacked 1 
039E: set_actor $CP locked 1 while_in_car 
jump @NONAME_1566 

:NONAME_1495
wait 0 
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
0430: put_actor $CP into_car $PA passenger_seat 2 
0430: put_actor $CP into_car $PA passenger_seat 2 
0430: put_actor $CP into_car $PA passenger_seat 2 
0526: set_actor $CP stay_in_car_when_jacked 1 
039E: set_actor $CP locked 1 while_in_car 
jump @NONAME_1566 

:NONAME_1566
wait 5 
if or
0103:   actor $PLAYER_ACTOR in_sphere 1535.88 -1672.608 13.4091 radius 30.0 30.0 30.0 sphere 1 stopped_in_car 
0103:   actor $PLAYER_ACTOR in_sphere -1994.373 167.3 27.195 radius 30.0 30.0 30.0 sphere 1 stopped_in_car 
0103:   actor $PLAYER_ACTOR in_sphere -1594.471 662.827 6.785 radius 30.0 30.0 30.0 sphere 1 stopped_in_car 
else_jump @NONAME_1566 
jump @NONAME_1699 

:NONAME_1699
wait 0 
0633: AS_actor $CP exit_car 
if 
   not Actor.InCar($CP, $PA)
else_jump @NONAME_1699 
jump @NONAME_2413 

:NONAME_1734
wait 0 
if 
   not Actor.InCar($CP, $PA)
else_jump @NONAME_1699 
if 
   Actor.Driving($CP)
else_jump @NONAME_1227 
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
04C4: store_coords_to $LC1 $LC2 $LC3 from_actor $PLAYER_ACTOR with_offset -50.0 -50.0 5.0 
04C4: store_coords_to $LC4 $LC5 $LC6 from_actor $CP with_offset 50.0 50.0 5.0 
09C0: $POCAR = get_random_car_in_area $LC1 $LC2 $LC4 $LC5 15.0 with_actors -1 
if 
056E:   car $POCAR defined 
else_jump @NONAME_1734 
046C: $POCARD = car $POCAR driver 
if 
056D:   actor $POCARD defined 
else_jump @NONAME_1734 
if or
   Car.Model($POCAR) == #COPCARLA
   Car.Model($POCAR) == #COPCARRU
   Car.Model($POCAR) == #COPCARSF
   Car.Model($POCAR) == #COPCARVG
else_jump @NONAME_1734 
046C: $POCARD = car $POCAR driver 
0337: set_actor $POCARD visibility 0 
0362: remove_actor $POCARD from_car_and_place_at 2239.367 -1261.939 22.9375 
Actor.RemoveReferences($POCARD)
$POCARD = Actor.CreateAsDriver(Cop, #LAPD1, $POCAR)
0337: set_actor $POCARD visibility 1 
0397: enable_car $POCAR siren 1 
07F8: car $POCAR follow_car $CC radius 8.0 
Car.SetMaxSpeed($POCAR, 50.0)
0423: set_car $POCAR improved_handling_to 1.5 // (float) 
00AE: set_car $POCAR traffic_behaviour_to 2 
03E5: show_text_box 'CCHA1' 
$POLNOTIFICATIONSHOWED = 1 
if 
  $PASSANGER2 == 1 
else_jump @NONAME_1162 
0713: actor $CP2 driveby_actor -1 car $POCAR point 0.0 0.0 0.0 radius 100.0 0 0 firing_rate 150 
if 
  $PASSANGER3 == 1 
else_jump @NONAME_1162 
0713: actor $CP3 driveby_actor -1 car $POCAR point 0.0 0.0 0.0 radius 100.0 0 0 firing_rate 150 
jump @NONAME_1162 

:NONAME_2196
if 
  $HELINOTIFICATIONSHOWED == 0 
else_jump @NONAME_2221 
jump @NONAME_2239 

:NONAME_2221
03E5: show_text_box 'CCHA3' 
jump @NONAME_1162 

:NONAME_2239
wait 0 
if 
   not Actor.InCar($CP, $PA)
else_jump @NONAME_1699 
if 
   Actor.Driving($CP)
else_jump @NONAME_1227 
if 
   not Actor.Dead($CP)
else_jump @NONAME_2495 
04C4: store_coords_to $HLC1 $HLC2 $HLC3 from_actor $PLAYER_ACTOR with_offset -30.0 -30.0 1000.0 
02C1: store_to $HLC1 $HLC2 $HLC3 car_path_coords_closest_to $HLC1 $HLC2 $HLC3 
$HELI = Car.Create(#POLMAV, $HLC1, $HLC2, $HLC3)
$HELID = Actor.CreateAsDriver(Cop, #LAPD1, $HELI)
0726: heli $HELI follow_actor $CP follow_car -1 radius 15.0 
03E5: show_text_box 'CCHA2' 
$HELINOTIFICATIONSHOWED = 1 
jump @NONAME_1162 

:NONAME_2413
if 
  $HELINOTIFICATIONSHOWED == 0 
else_jump @NONAME_2597 
if 
  $POLNOTIFICATIONSHOWED == 0 
else_jump @NONAME_2749 
Actor.RemoveReferences($CP)
Car.RemoveReferences($PA)
Car.RemoveReferences($CC) 
Player.Money($PLAYER_CHAR) += 1000
01F0: set_max_wanted_level_to 5 
wait 500 
jump @NONAME_2 

:NONAME_2495
if 
  $HELINOTIFICATIONSHOWED == 0 
else_jump @NONAME_2663 
if 
  $POLNOTIFICATIONSHOWED == 0 
else_jump @NONAME_2805 
Marker.Disable($CM)
Car.SetImmunities($CC, 0, 0, 0, 0, 0)
Actor.RemoveReferences($CP)
Car.RemoveReferences($CC)
Car.RemoveReferences($PA)
Player.Money($PLAYER_CHAR) += 500 
01F0: set_max_wanted_level_to 5 
wait 500 
jump @NONAME_2 

:NONAME_2597
Car.RemoveReferences($HELI)
Actor.RemoveReferences($HELID)
Actor.RemoveReferences($CP)
Actor.RemoveReferences($POCARD)
Car.RemoveReferences($PA)
Car.RemoveReferences($POCAR)
Car.RemoveReferences($CC) 
Player.Money($PLAYER_CHAR) += 1000
01F0: set_max_wanted_level_to 5 
wait 500 
jump @NONAME_2 

:NONAME_2663
Car.RemoveReferences($HELI)
Actor.RemoveReferences($HELID)
Marker.Disable($CM)
Car.SetImmunities($CC, 0, 0, 0, 0, 0)
Actor.RemoveReferences($CP)
Actor.RemoveReferences($POCARD)
Car.RemoveReferences($POCAR)
Car.RemoveReferences($CC)
Car.RemoveReferences($PA)
Player.Money($PLAYER_CHAR) += 500
01F0: set_max_wanted_level_to 5 
wait 500 
jump @NONAME_2 

:NONAME_2749
Actor.RemoveReferences($CP)
Actor.RemoveReferences($POCARD)
Car.RemoveReferences($PA)
Car.RemoveReferences($POCAR)
Car.RemoveReferences($CC) 
Player.Money($PLAYER_CHAR) += 1000
01F0: set_max_wanted_level_to 5 
wait 500 
jump @NONAME_2 

:NONAME_2805
Marker.Disable($CM)
Car.SetImmunities($CC, 0, 0, 0, 0, 0)
Actor.RemoveReferences($CP)
Actor.RemoveReferences($POCARD)
Car.RemoveReferences($POCAR)
Car.RemoveReferences($CC)
Car.RemoveReferences($PA)
Player.Money($PLAYER_CHAR) += 500 
01F0: set_max_wanted_level_to 5 
wait 500 
jump @NONAME_2 

:NONAME_END
thread_end